/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.car.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.car.entity.GpsMember;
import com.thinkgem.jeesite.modules.car.dao.GpsMemberDao;

/**
 * 会员信息Service
 * @author xiaoqian
 * @version 2018-01-07
 */
@Service
@Transactional(readOnly = true)
public class GpsMemberService extends CrudService<GpsMemberDao, GpsMember> {
	@Autowired
	private GpsMemberDao gpsMemberDao;

	public GpsMember get(String id) {
		return super.get(id);
	}
	
	public List<GpsMember> findList(GpsMember gpsMember) {
		return super.findList(gpsMember);
	}
	
	public Page<GpsMember> findPage(Page<GpsMember> page, GpsMember gpsMember) {
		return super.findPage(page, gpsMember);
	}
	
	@Transactional(readOnly = false)
	public void save(GpsMember gpsMember) {
		super.save(gpsMember);
	}
	
	@Transactional(readOnly = false)
	public void delete(GpsMember gpsMember) {
		super.delete(gpsMember);
	}

	public GpsMember getGpsMemberByOpenId(GpsMember gpsMember){
		return gpsMemberDao.getGpsMemberByOpenId(gpsMember);
	}
}